/**
 * Created Date: Sunday, April 9th 2023, 11:03:52 pm
 * Author: CodingGorit
 * -----
 * Last Modified: Sun Apr 09 2023
 * Modified By: CodingGorit
 * -----
 * Copyright © 2019 —— 2023 fmin-courses All Rights Reserved
 * ------------------------------------
 * Javascript will save your soul!
 */
import type { TableColumnsType } from 'ant-design-vue';

// ================= content =============================
/**
 * 帖子列表
 */
export const
    blogColumn: TableColumnsType = [{
        title: '序号',
        dataIndex: 'num',
        align: 'center',
        key: 'num'
    },
    {
        title: '博客id',
        dataIndex: 'blogId',
        width: '15%',
        key: 'blogId'
    },
    {
        title: '帖子标题',
        dataIndex: 'blogTitle',
        width: '15%',
        key: 'blogTitle'
    },
    {
        title: '帖子封面',
        dataIndex: 'blogImage',
        width: '10%',
        key: 'blogImage'

    },
    {
        title: '帖子描述',
        dataIndex: 'blogDescription',
        width: '10%',
        key: 'blogDescription'
    },
    {
        title: '阅读量',
        dataIndex: 'blogRead',
        key: 'blogRead'
    },
    {
        title: '点赞量',
        dataIndex: 'blogLikes',
        key: 'blogLikes'
    },
    {
        title: '收藏量',
        dataIndex: 'blogCollection',
        key: 'blogCollection'
    },
    {
        title: '评论量',
        dataIndex: 'blogComment',
        key: 'blogComment'
    },
    {
        title: '是否置顶',
        dataIndex: 'isTop',
        key: 'isTop'
    },
    {
        title: '创建时间',
        dataIndex: 'createdTime',
        width: '10%',
        key: 'createdTime'
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: '10%',
        key: 'updateTime'
    },
    {
        title: '操作',
        width: '200',
        dataIndex: 'operation',
        key: 'operation',
    }
    ];

export const aboutColumns = [
    {
        title: '关于id',
        dataIndex: 'aboutId',
        width: '50',
        scopedSlots: {
            customRender: 'aboutId'
        },
    },
    {
        title: '关于标题',
        dataIndex: 'aboutTitle',
        scopedSlots: {
            customRender: 'aboutTitle'
        },
    },
    {
        title: '阅读量',
        dataIndex: 'aboutRead',
        scopedSlots: {
            customRender: 'aboutRead'
        },
    },
    {
        title: '是否显示',
        dataIndex: 'enable',
        scopedSlots: {
            customRender: 'enable'
        },
    },
    {
        title: '创建时间',
        dataIndex: 'createdTime',
        width: '10%',
        scopedSlots: {
            customRender: 'createdTime'
        },
    },
    {
        title: '修改时间',
        dataIndex: 'updateTime',
        width: '10%',
        scopedSlots: {
            customRender: 'updateTime'
        },
    },
    {
        title: '操作',
        width: '220',
        dataIndex: 'operation',
        scopedSlots: {
            customRender: 'operation'
        },
    }
]
